package com.itqf.service.impl;

import com.itqf.dao.BookDao;
import com.itqf.service.BookService;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/9/29
 * @Time: 上午10:53
 */
public class BookServiceImpl  implements BookService {

    private BookDao bookDao;

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    @Override
    public void insert() {
        bookDao.insert();
    }

    @Override
    public void delete(int id) {
        bookDao.delete(id);
    }

    @Override
    public int update(int id) {
        bookDao.update(id);
        return 0;
    }
}
